public class MyThread extends Thread {
    User user;
    int num;
    double money;
    String name;

    public MyThread(User user, int num, double money, String name) {
        this.user = user;
        this.num = num;
        this.money = money;
        this.name = name;
    }

    public void run() {
        user.operation(num, money);
    }
}